package com.jxy.bean.constant;

public enum ConstantPoolTag {
    CONSTANT_Utf8(1, "CONSTANT_Utf8"),
    CONSTANT_Integer(3, "CONSTANT_Integer"),
    CONSTANT_Float(4, "CONSTANT_Float"),
    CONSTANT_Long(5, "CONSTANT_Long"),
    CONSTANT_Double(6, "CONSTANT_Double"),
    CONSTANT_Class(7, "CONSTANT_Class"),
    CONSTANT_String(8, "CONSTANT_String"),
    CONSTANT_Fieldref(9, "CONSTANT_Fieldref"),
    CONSTANT_Methodref(10, "CONSTANT_Methodref"),
    CONSTANT_InterfaceMethodref(11, "CONSTANT_InterfaceMethodref"),
    CONSTANT_NameAndType(12, "CONSTANT_NameAndType"),
    CONSTANT_MethodHandle(15, "CONSTANT_MethodHandle"),
    CONSTANT_MethodType(16, "CONSTANT_MethodType"),
    CONSTANT_Dynamic(17, "CONSTANT_Dynamic"),
    CONSTANT_InvokeDynamic(18, "CONSTANT_InvokeDynamic"),
    CONSTANT_Module(19, "CONSTANT_Module"),
    CONSTANT_Package(20, "CONSTANT_Package");

    private int tag;
    private String type;

    private ConstantPoolTag(int tag, String type) {
        this.tag = tag;
        this.type = type;
    }

    public int getTag() {
        return tag;
    }

    public String getType() {
        return type;
    }
}
